package boddaert.philippe.cashGame.comparator;

import boddaert.philippe.cashGame.Game;
import boddaert.philippe.cashGame.GameConfiguration;

public class GameAnalysis {

	private final GameConfiguration config2;
	private final double ratio;
	private final GameConfiguration config1;

	public GameAnalysis(GameConfiguration config1, GameConfiguration config2,
			double ratio) {
		this.config1 = config1;
		this.config2 = config2;
		this.ratio = ratio;

	}

	public GameConfiguration getConfigurationToBuy() {
		if (ratio >= 1)
			return config2;
		else
			return config1;
	}

	public GameConfiguration getConfigurationToSell() {
		if (ratio >= 1)
			return config1;
		else
			return config2;
	}

	public double getRatio() {
		return this.ratio;
	}
}
